const db = require('../../../libs/db.config');

module.exports = async (postID) => {
    const searchSQL = 'select forum.content,forum.date,forum.title,userinfo.userName,userinfo.photo, userinfo.intro from forum join user on forum.userID = user.userID join userinfo on user.userID = userinfo.userID where forum.postID = ' + postID;
    return await db.query(searchSQL);
};
